<?php session_start(); 
## include required files
/*******************************/
require_once "../config/configuration.php";
require_once("../model/moduleuser.php");
require_once "../includes/classes/Database.php";
/*******************************/

$modObj  = new Model_ModuleUser();

if(isset($_SESSION["admin_type"]) && $_SESSION["admin_type"]!=""){
	$result = $modObj->getModuleUserValueByUserIdWithActiveStatus($_SESSION["admin_id"]);

	$rowcnt = count($result);				
	foreach($result as $rs) {		
	 	$mod_per[$rs['module_id']]=$rs['perm_status'];		 
	}	
	$_SESSION["mod_per"]=$mod_per;
	//print_r($_SESSION["mod_per"]);
	//echo"<pre>";print_r($mod_per);die();
	$smarty->assign("mod_per",$mod_per);
		
} // If closed
## Unset all the objects which is created on this page
unset($modObj);
?>	